﻿using System.Linq;
using System.ServiceModel;
using System.Text;

namespace Hydra.Core
{
    [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IHydraCallback))]
    public interface IHydraService
    {
        [OperationContract(IsInitiating = true, IsTerminating = false)]
        void Write(string message);

        [OperationContract(IsInitiating = true, IsTerminating = false)]
        void Register();

        [OperationContract(IsInitiating = false, IsTerminating = false)]
        void Unregister();
    }
}
